import dayjs from 'dayjs'
export default {
  data() {
    return {
      functionName: this.$options.name,
    }
  },
  methods: {
    showMessage(text, isError = null) {
      let type = 'normal'
      if (isError === true) type = 'error'
      if (isError === false) type = 'success'
      this.msgs.unshift({ text: dayjs().format('HH:mm:ss') + ': ' + text, type: type })
    },
  },
}
